package cn.com.shadowless.xinning.service;

import android.util.Log;

import com.huawei.hms.push.HmsMessageService;
import com.huawei.hms.push.RemoteMessage;

import cn.jpush.android.service.PluginHuaweiPlatformsService;

/**
 * 项目名称：XinNing
 * 包名：cn.com.shadowless.xinning.service
 * 类名: MyHWPushService
 * 创建人：刘柯
 * 创建时间：2021/9/14 23:07
 * 类描述：
 * Email:1012459343@qq.com
 */
public class MyHWPushService extends HmsMessageService {

    final PluginHuaweiPlatformsService service = new PluginHuaweiPlatformsService();
    PushService pushService = new PushService();

    @Override
    public void onNewToken(String s) {
        Log.e("TAG", "[onMessage] ");
        service.onNewToken(s);

    }

    @Override
    public void onMessageReceived(RemoteMessage remoteMessage) {
        Log.e("TAG", "[onMessage] ");
        service.onMessageReceived(remoteMessage);
    }

    @Override
    public void onMessageSent(String s) {
        Log.e("TAG", "[onMessage] ");
        service.onMessageSent(s);
    }

    @Override
    public void onSendError(String s, Exception e) {
        Log.e("TAG", "[onMessage] ");
        service.onSendError(s,e);
    }

    @Override
    public void onDeletedMessages() {
        Log.e("TAG", "[onMessage] ");
        service.onDeletedMessages();
    }
}